#include <iostream>

using namespace std;

class Base {

public:
    virtual void func() {
        std::cout << "Function in Base" << std::endl;
    }
};

class Derived : public Base {

public:
    void func() override {
        std::cout << "Function in Derived" << std::endl;
    }
};


int main(int argc, char *argv[])
{
    Base b1;
    Derived b2;

    b1.func();
    b2.func();

    return 0;
}
